﻿<%@ Page Title="" Language="C#" enableEventValidation="false" MasterPageFile="~/Portal/Master/Portal.Master" AutoEventWireup="true" CodeBehind="Collection.aspx.cs" Inherits="Besture.UI.Portal.UserCenter.Collection" %>
<%@ Import Namespace="Besture.Common.Helper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Resource/css/member.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="wrap">
        <div class="main member ">
            <div class="vipbanner"></div> 

            <div class="container">
                <div class="layout_side">
                    <div class="side_nav"> 
                        <cms:UserNav runat="server" ID="UserNav" />
                    </div>
                </div>
                <div class="layout_main">
                    <div class="vipcon">
                        <div class="viptitle">我的收藏</div>
                        <div class="mailcon comment  collect">
                            <table class="first">
                                <tr>
                                    <td width="150" class="pad">酒店名称</td>
                                    <td width="140" >收藏时间</td>
                                    <td width="320">价格</td>
                                    <td width="110">操作</td>
                                </tr> 
                                <tr>
                                    <td colspan="5">
                                        <asp:Repeater ID="rpCollect" runat="server">
                                            <ItemTemplate>
                                                <table class="second">
                                                    <tr class="addstyle">
                                                        <td width="150" class="pad border">
                                                            <span class="themecolor"><%#Eval("HotelsName") %> </span>
                                                        </td>
                                                        <td width="140" style="border-left: none; color: #656565;"><%#Eval("CreateTime") %></td>
                                                        <td width="320">
                                                            <span style="color: #b10b4a; font-size: 14px; font-weight: bold;">￥300</span>
                                                        </td>
                                                        <td width="110">
                                                            <a href="/Portal/Hotel/ProductDetail.aspx?hotelid=<%#Eval("HID") %>">预 定</a><br />
                                                            <a href="?Id=<%#Eval("Id") %>">取消收藏</a>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="5" style="text-align: right; padding-right: 35px;padding-top: 15px;">
                                        <!-- 分页 -->
                                        <cms:AspNetPager ID="AspNetPager1" AlwaysShow="true" runat="server" NextPageText="下一页" CssClass="pre"
                                            ShowFirstLast="False" ShowInputBox="Never" PrevPageText="上一页" PageSize="10" NumericButtonCount="10"
                                            OnPageChanging="AspNetPager1_PageChanging">
                                        </cms:AspNetPager>
                                        <!-- /分页 --> 
                                    </td>
                                </tr>
                            </table> 
                            <%--<div class="page">
                                <a href="#" class="pre"> &nbsp;</a>
                                <span class="on">1</span>
                                <a href="#" class="next">下一页</a>
                                到<input value="1" />页
                                <a href="#" class="sure">确定</a>
                            </div>--%>
                        </div>
                        <br class="clear" />
                    </div>
                </div>
                <br class="clear" />
            </div>
        </div>
        <!-- //main -->
        <br class="clear" />
    </div>
    <!-- //wrap -->
    <script type="text/javascript">
        $(function () {
            $(".personinfomation table tr").each(function () {
                $(this).children("td:not(:first)").css("padding-left", "35px");
            });
            $(".edit").each(function () {
                var _this = $(this);
                _this.click(function () {

                    _this.parent().prev().children("input").removeClass("none").addClass("show").removeAttr("readonly");
                    return false;
                });
            });

            //点击窗体其他位置关闭框
            $(window).click(function (e) {
                if (!$(e.target).is(".edit")) {
                    $(".edit").parent().prev().children("input").addClass("none");
                }
            });
            $(".date_input").date_input();
        })
    </script>
</asp:Content>
